package cn.edu.ujn.park.dao;

import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface PaymentsMapper {
    int deleteByPrimaryKey(Integer paymentId);

    int insert(Payments row);

    int insertSelective(Payments row);

    Payments selectByPrimaryKey(Integer paymentId);

    int updateByPrimaryKeySelective(Payments row);

    int updateByPrimaryKey(Payments row);

    List<Payments> selectAll(Payments payments);

    Integer selectCount(Integer userId);

    Integer update();

    Integer delete(Integer paymentId);

    Integer pay(@Param("paymentId") Integer paymentId,
                @Param("finalCost") BigDecimal finalCost,
                @Param("couponId") Integer couponId);
}